import { FC } from 'react';
import styles from './nav.less';
// import useWeather from '@/hooks/useWeather';
import useTimeStr from '@/hooks/useTimeStr';

const Index: FC = () => {
  // const [wtNm, wtTemp] = useWeather();
  const timeStr = useTimeStr();

  return (
    <div className={styles.navwrap}>
      <div className={styles.left}>首页</div>
      <div>
        {/* {wtNm} - {wtTemp}℃ -  */}
        {timeStr}
      </div>
    </div>
  );
};

export default Index;
